package com.softer.wxzj.controller;


import com.softer.wxzj.common.aop.annotation.LogRecord;
import com.softer.wxzj.common.aop.enums.LogOperationType;
import com.softer.wxzj.common.aop.enums.LogOperationUnit;
import com.softer.wxzj.entity.SysCoreParamValue;
import com.softer.wxzj.service.SysCoreParamValueService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * FlowTypeController class
 * @author wxr
 * @date 2019/4/10
 */
@RestController
@RequestMapping("/syscoreparamvalue")
@Slf4j
public class SysCoreParamValueController {
    @Autowired
    SysCoreParamValueService sys;

    /**
     * 系统参数详情查询
     * @param paramId
     * @return
     */
    @RequestMapping("/getList")
    @LogRecord(description = "系统参数详情查询",operationUnit = LogOperationUnit.SYS_CORE_PARAM_VALUE,operationType = LogOperationType.SELECT)
    public List<SysCoreParamValue> getList(String paramId) {
        return sys.getList(paramId);
    }
}
